package com.duqc.tag.service.impl.strategy;

import com.duqc.tag.entity.ClassificationRule;

import java.util.List;

/**
 * @ClassName TagDataStrategy
 * @Description TagDataStrategy
 * @Author duqc
 * @Date 2023/2/9
 **/
public interface TagDataStrategy {

    /**
     * 返回 type
     *
     * @return String
     */
    String getType();

    /**
     * 获取标签数据
     *
     * @param objects  规则信息
     * @param relation 规则关系
     * @return List
     */
    List<String> calculationTag(List<ClassificationRule> objects, String relation);

}
